﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WineModel;
using WineDAL;
using System.Data;
using System.Data.SqlClient;
using System.Collections;

namespace WineBLL
{
   public class WineShopBLL
    {
       WineShopDAL dal = new WineShopDAL();
       /// <summary>
       /// 显示购物车信息
       /// </summary>
       /// <returns></returns>
       public ArrayList ShopShow(int id)
       {
           return dal.ShopShow(id);
       }
       /// <summary>
       /// 购物车商品添加
       /// </summary>
       /// <param name="ss"></param>
       /// <returns></returns>
       public int ShopAdd(Shop ss)
       {
           return dal.ShopAdd(ss);
       }
       /// <summary>
       /// 删除购物车商品
       /// </summary>
       /// <param name="shopid"></param>
       /// <returns></returns>
       public int ShopDelete(int shopid)
       {
           return dal.ShopDelete(shopid);
       }
    }
}
